package learn_concurrent._10;

public class AccountTest {
    public static void main(String[] args) {
//        Account unsafeAccount = new UnsafeAccount(10000);
//        Account.demo(unsafeAccount);  // 70 cost:238ms
//
//        Account safeAccount = new SafeAccount(10000);
//        Account.demo(safeAccount);  // 0 cost:166ms

        Account cASAccount = new CASAccount(10000);
        Account.demo(cASAccount);
    }
}
